#!/usr/bin/env bash

#
# ki 为kill的缩写，表示杀死某个进程，eg： ki omc
#

declare -A map=(
["nacos"]="eplus-nacos"
["gateway"]="eplus-gateway"
["admin"]="eplus-admin-biz"
["building"]="eplus-building-biz"
["house"]="eplus-house-biz"
["customer"]="eplus-customer-biz"
["file"]="eplus-file-biz"
["oa"]="eplus-oa-biz"
["nb"]="eplus-nb-biz"
["syncData"]="eplus-syncData-biz"
["jmp"]="eplus-jmp-biz"
["college"]="eplus-college-biz"
)
#todo 这里要检查下确保$1有值

echo ========执行命令:    pkill  --signal 9  -f ${map[$1]}    =========

pkill --signal 9 -f ${map[$1]}
